import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '资质名称',
    align: "center",
    dataIndex: 'flaName'
  },
  {
    title: '考核内容',
    align: "center",
    dataIndex: 'exam',
    
  },
  {
    title: '资质权限',
    align: "center",
    dataIndex: 'setUp'
  },
  // {
  //   title: '权限内容',
  //   align: "center",
  //   dataIndex: 'content'
  // },
];

//查询数据
export const searchFormSchema: FormSchema[] = [
  {
    label: "资质名称",
    field: 'flaName',
    component: 'Input',
    colProps: {span: 6},
  },
];

//表单数据
export const formSchema: FormSchema[] = [
  {
    label: '资质名称',
    field: 'flaName',
    component: 'Input',
  },
  {
    label: '考核内容',
    field: 'exam',
    component: 'Input',
    
  },
  {
    label: '资质权限',
    field: 'setUp',
    component: 'Input',
  },
  {
    label: '权限内容',
    field: 'content',
    component: 'Input',
  },
	// TODO 主键隐藏字段，目前写死为ID
  {
    label: '',
    field: 'id',
    component: 'Input',
    show: false,
  },
];
